﻿@using System.Dynamic
@model object

@{
    ResFile = "cms_Metas";
}

@Html.DropDownListFor(m => m, (IEnumerable<SelectListItem>)ViewData["DataSource"], ViewData["Attributes"])
@if (true.Equals(ViewData["CanAddNew"]))
{
    <div class="js-new-meta-container">
    <br />
    <a href="#" class="js-add-new-value-link">@_("Add new")</a>
    <div style="display: none;" class="js-new-meta-controls">
        <input type="text" class="js-new-meta-value text" />
        <input data-linkid="@ViewData["LinkId"]" data-select="#@Html.GetClientIdFor(m => m)" data-url="@Url.Action("AddValue", "CmsMetaField")" class="js-add-new-meta-value" value="@_("Ok")" type="button"/>
        <input class="js-cancel-new-meta-value" value="@_("Cancel")" type="button" />
    </div>
    </div>
}